/**
 * constantRoutes (常量路由)
 * 所有用户都可访问的基础路由，不需要动态判断权限
 */

export const constantRoutes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/Login.vue'),
    meta: {
      title: '登录',
      requiresAuth: false,
      hidden: true
    }
  },
  {
    path: '/403',
    name: 'Forbidden',
    component: () => import('@/views/exception/403.vue'),
    meta: {
      title: '无权访问',
      hidden: true
    }
  },
  {
    path: '/500',
    name: 'ServerError',
    component: () => import('@/views/exception/500.vue'),
    meta: {
      title: '服务器错误',
      hidden: true
    }
  },
  {
    path: '/',
    name: 'Root',
    redirect: '/dashboard/workbench',
    meta: {
      hidden: true
    }
  },
  {
    path: '/404',
    name: 'NotFound',
    component: () => import('@/views/exception/404.vue'),
    meta: {
      title: '页面不存在',
      hidden: true
    }
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFoundFallback',
    redirect: '/404',
    meta: {
      hidden: true
    }
  }
]